<?php


class WacStockGoodsStatementTable extends WacCommonTable
{
    public static function getInstance()
    {
        return Doctrine_Core::getTable('WacStockGoodsStatement');
    }

    public function sumUpGoodsNumberByGoodsCategory($period, $goodsCategoryCode)
    {
        $objGoodsCagegory = Doctrine::getTable(WacTable::$goodsCategory)->findOneBy("code", $goodsCategoryCode);
        $bizOrderType = WacGoodsCategory::getProduceOrderTypeByCategory($objGoodsCagegory->getCode());
        $objQuery = $this->createQuery('t1')
                    ->select("t1.*");
    }
}